package com.example.zzh.entity;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 单据子表
 * </p>
 *
 * @author zzh
 * @since 2023-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="ZzhDepotItem对象", description="单据子表")
public class ZzhDepotItem implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "表头Id")
    private Long headerId;

    @ApiModelProperty(value = "商品Id")
    private Long materialId;

    @ApiModelProperty(value = "商品计量单位")
    private String materialUnit;

    @ApiModelProperty(value = "数量")
    private BigDecimal operNumber;

    @ApiModelProperty(value = "基础数量，如kg、瓶")
    private BigDecimal basicNumber;

    @ApiModelProperty(value = "单价")
    private BigDecimal unitPrice;

    @ApiModelProperty(value = "金额")
    private BigDecimal allPrice;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "仓库ID")
    private Long depotId;

    @ApiModelProperty(value = "调拨时，对方仓库Id")
    private Long anotherDepotId;

    @ApiModelProperty(value = "税率")
    private BigDecimal taxRate;

    @ApiModelProperty(value = "税额")
    private BigDecimal taxMoney;

    @ApiModelProperty(value = "价税合计")
    private BigDecimal taxLastMoney;

    @ApiModelProperty(value = "删除标记，0未删除，1删除")
    private String deleteFlag;


}
